package decorator;

import drink.Drink;

public abstract class Decorator extends Drink {
    private Drink drink;

    public Drink getDrink() {
        return drink;
    }

    public Decorator(Drink drink) {
        this.drink = drink;
    }


    @Override
    public float cost() {
        return super.getPrice()+drink.cost();
    }

    @Override
    public String getDesr() {
        return super.getDesr()+" "+super.getPrice()+" && "+drink.getDesr();
    }
}
